-
Notifications
You must be signed in to change notification settings - Fork 673
Fix severe warning from class loader in servo #3577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
// Plugin loader | ||
std::unique_ptr<pluginlib::ClassLoader<online_signal_smoothing::SmoothingBaseClass>> smoother_loader_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Bijou, long time no see. Thanks for fixing this, it's been annoying for too long.
I don't think it needs to be a unique_ptr? But I'll still approve the PR either way.
// Plugin loader | |
std::unique_ptr<pluginlib::ClassLoader<online_signal_smoothing::SmoothingBaseClass>> smoother_loader_; | |
// Plugin loader | |
pluginlib::ClassLoader<online_signal_smoothing::SmoothingBaseClass> smoother_loader_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Bijou, long time no see. Thanks for fixing this, it's been annoying for too long.
I don't think it needs to be a unique_ptr? But I'll still approve the PR either way.
Hi @AndyZe, Sorry didn't respond earlier. Good to see you too
I pushed a small commit to satisfy the linter |
Blocked pending #3567 I think |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3577 +/- ##
==========================================
+ Coverage 46.19% 46.19% +0.01%
==========================================
Files 720 720
Lines 62744 62742 -2
Branches 7595 7594 -1
==========================================
+ Hits 28978 28980 +2
+ Misses 33598 33596 -2
+ Partials 168 166 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Force merging this since Rolling CI was fixed and this is now passing. The tutorial failure is unrelated and should be resolved by moveit/moveit2_tutorials#1071 |
* Add class loader member variable instead of creating on stack * Fix formatting to satisfy clang --------- Co-authored-by: AndyZe <andyz@utexas.edu> Co-authored-by: Nathan Brooks <nathanbrooks@picknik.ai> (cherry picked from commit 92654dd) # Conflicts: # moveit_ros/moveit_servo/include/moveit_servo/servo.hpp # moveit_ros/moveit_servo/src/servo.cpp
* Add class loader member variable instead of creating on stack * Fix formatting to satisfy clang --------- Co-authored-by: AndyZe <andyz@utexas.edu> Co-authored-by: Nathan Brooks <nathanbrooks@picknik.ai> (cherry picked from commit 92654dd)
@nbbrooks Is it possible to get this commit into the next Kilted sync. Would appreciate that. |
Description
To fix "SEVERE WARNING" from class loader in moveit_servo, created the class loader as a member variable instead of creating it on the stack.
This fixes the following error: